package com.suse.lhw.security.service.Impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.suse.lhw.domin.PIfo;
import com.suse.lhw.dao.PIfoMapper;
import com.suse.lhw.security.service.PIfoService;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.security.service.Impl
 * @ClassName: PIfoServiceImpl
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/4/15 10:30
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/4/15 10:30
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Service
@Transactional

public class PIfoServiceImpl implements PIfoService {

    @Resource
    private PIfoMapper pIfoMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return pIfoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(PIfo record) {
        return pIfoMapper.insert(record);
    }

    @Override
    public int insertSelective(PIfo record) {
        return pIfoMapper.insertSelective(record);
    }

    @Override
    public PIfo selectByPrimaryKey(Integer id) {
        return pIfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(PIfo record) {
        return pIfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PIfo record) {
        return pIfoMapper.updateByPrimaryKey(record);
    }

    @Override
    public PIfo selectByUserId(String userId) {
        return pIfoMapper.selectByUserId(userId);
    }

}

